<head th:include="~{common/header::header}" />

<title th:text="${blogContent.title}">代码&amp;视觉|多角度着眼，多维度审视</title>
<body>
	<div th:insert="~{common/navbar :: navbar}"></div>
	<!--content-->
	<div class="container my-2  minh">
		<h3 th:text="${blogContent.title}" >
		标题：
		</h3>
		<h6>
			作者：<a href="javascript:void(0)" th:text="${blogContent.author}" class="text-info mx-2"></a> 发布日期：<span th:text="${#calendars.format(blogContent.pubDate,'yyyy-MM-dd')}"></span>
			 &nbsp;访问次数：<span th:text="${blogContent.viewCount}"></span>&nbsp;次
		</h6>
		<p th:utext="${blogContent.content}"></p>
		<!-- 	comments -->

		<div th:each="blogComment : ${blogCommentList}">
			<p>
				<span th:text="${blogComment.cname}">匿名用户</span>: <span th:utext="${blogComment.comment}"></span> <span th:text="${#calendars.format(blogComment.createTime,'yyyy-MM-dd hh:SS:mm')}"></span>
			</p>
		</div>

		<div>
			<form th:action="@{/portal/add}" method="post">
				<input type="hidden" id="contentId" name="contentId" th:value="${blogContent.id}" />
				<div class="form-group">
					<label for="comment">评论:</label>
					<textarea class="form-control" rows="5" cols="100" id="comment" name="comment" th:inline="text" placeholder="写下你的心里话"></textarea>
				</div>
				<div class="row">
					<div class="col-md-6 offset-md-6 ">
						<button type="submit" class="btn btn-info pull-right mx-2">发送</button>
						<button type="button" class="btn pull-right mx-2" onclick="clear_content()">取消</button>
					</div>
				</div>
			</form>
		</div>
		<!-- /.comments -->
	</div>
	<!-- /.content -->
	<div th:insert="~{common/footer :: footer}"></div>
</body>